home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
SaveRenderedAs_FLC.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
921b
|
46 lines
/*
* SaveRenderedAs_FLC.ifx.pre
* Written by Thomas Krehbiel
*
* Save rendered image as ANIM frame.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_SaveRendFLC_'
lastpath = GETCLIP(base||'Path')
lastfile = GETCLIP(base||'File')
lastpat = GETCLIP(base||'Pat')
IF lastpath = "" THEN DO
GetPrefs RendPath
lastpath = result
END
RequestFile '"Save FLC Animation File:"' '"'lastpath'"' '"'lastfile'"' '"'lastpat'"'
IF rc ~= 0 THEN EXIT rc
name = result
IF EXISTS(name) THEN DO
RequestResponse name 'exists. Overwrite?'
IF rc ~= 0 THEN EXIT rc
ADDRESS COMMAND 'Delete "'name'"'
END
CALL SETCLIP(base||'Path',filereq.path)
CALL SETCLIP(base||'File',filereq.file)
CALL SETCLIP(base||'Pat',filereq.pat)
CALL SETCLIP(base||'Name',name)
EXIT